﻿using Lhz.Framework.Test.Entity;
using Lhz.Framework.Test.Interface;
using Lhz.InternetService;

namespace Lhz.Framework.Test.Service
{
    public class ServiceTest : IServiceTest
    {
        public int GetStringArrayLength(string[] array)
        {
            return array.Length;
        }

        public int GetStudentArrayLength(Student[] students)
        {
            return students.Length;
        }

        public Student[] QueryStudents()
        {
            var url = @"http://localhost:53843/ServiceStudent.svc";
            return new ServiceInvoker(typeof(Student)).Invoke<Student[]>(url, "Query", new object[] { new string[] { null } });
        }
    }
}
